/*
 * @Descripttion:底层公共接口
 * @version: v1
 * @Author: Terry
 * @Date: 2021-12-25 17:55:20
 * @LastEditors: Terry
 * @LastEditTime: 2022-10-31 17:50:19
 */

// const common = {
//   'common':{  
//       'ocr':{
//           'ocr':'common/admin/v1/ocr/ocr',
//       },
//       'upload':{
//           'img':'common/admin/v1/upload/img',
//           'base64':'common/admin/v1/upload/base64',
//           'bigFile':'common/admin/v1/upload/bigFile',
//           'fileMerge':'common/admin/v1/upload/fileMerge',
//       },
//       'corp':{
//           'getCorpItem':'common/admin/v1/corp/getCorpItem',
//           'projectCorpList':'common/admin/v1/corp/projectCorpList',
//           'getList':'common/admin/v1/corp/getList',
//           'corpTeam':'common/admin/v1/Corp/corpTeam'
//       },
//       'integrator':{
//           'getList':'common/admin/v1/integrator/getIntegrator',
//       },
//       'video':{
//         'controlYunTai':'video/admin/v1/video/cameraControl'
//       }
//   }
// }
// module.exports =  common
import request from '@/utils/axios'
export function ocr(data) {
    return request({
        url: 'common/admin/v1/ocr/ocr',
        method: 'post',
        data
    })
}

export function img(data) {
    return request({
        url: 'common/admin/v1/upload/img',
        method: 'post',
        data
    })
}

export function base64(data) {
    return request({
        url: 'common/admin/v1/upload/base64',
        method: 'post',
        data
    })
}

export function bigFile(data) {
    return request({
        url: 'common/admin/v1/upload/bigFile',
        method: 'post',
        data
    })
}

export function fileMerge(data) {
    return request({
        url: 'common/admin/v1/upload/fileMerge',
        method: 'post',
        data
    })
}

export function getCorpItem(params) {
    return request({
        url: 'common/admin/v1/corp/getCorpItem',
        method: 'get',
        params: params
    })
}

export function projectCorpList(params) {
    return request({
        url: 'common/admin/v1/corp/projectCorpList',
        method: 'get',
        params: params
    })
}

export function getList(params) {
    return request({
        url: 'common/admin/v1/corp/getList',
        method: 'get',
        params: params
    })
}

export function corpTeam(params) {
    return request({
        url: 'common/admin/v1/Corp/corpTeam',
        method: 'get',
        params: params
    })
}

export function getIntegrator(params) {
    return request({
        url: 'common/admin/v1/integrator/getIntegrator',
        method: 'get',
        params: params
    })
}

export function cameraControl(params) {
    return request({
        url: 'video/admin/v1/video/cameraControl',
        method: 'get',
        params: params
    })
}